package edu.njfu.networkdemo.service

import edu.njfu.networkdemo.model.ResultVO
import retrofit2.Call
import retrofit2.http.*

interface UserService{
   // @Headers("Content-Type:application/json","Accept: application/json")
//    @POST("/userLogin")
//    fun checkLogin(@Body data:String): Call<ResultVO>;

    @POST("studentadminsystem/loginServlet")
    fun checkLogin(@Query("userName") userName:String, @Query("password") password :String):Call<ResultVO>

    @POST("studentadminsystem/RegisterServlet")
    fun register(@Query("userName") userName:String, @Query("password") password :String):Call<ResultVO>

}